<template>
	<vab-query-form>
		<el-form ref="formSearch" v-model="value" @submit.native.prevent :inline="inline2" :label-width="null"
			v-bind="$props" v-on="$listeners">
			<slot name="ReferrerIDBefore"></slot>
			<slot name="ReferrerID">
				<el-form-item>
					<remoteselect v-model="value.ReferrerID" url="api/Referrer/ListSelect" value-label="Name"
						value-key="ReferrerID" query-key="selectIDName" :placeholder="replaceID(keyLan['ReferrerID'])" style="width:150px;">
						<template v-slot="{ row }">
							{{row.Name}}
						</template>
					</remoteselect>
				</el-form-item>
			</slot>
			<slot name="ReferrerIDAfter"></slot>
			<slot name="OrganizationIDBefore"></slot>
			<slot name="OrganizationID">
				<el-form-item>
					<remoteselect v-model="value.OrganizationID" url="api/Organization/ListSelect" value-label="Name"
						value-key="OrganizationID" query-key="selectIDName" :placeholder="replaceID(keyLan['OrganizationID'])" style="width:150px;">
						<template v-slot="{ row }">
							{{row.Name}}
						</template>
					</remoteselect>
				</el-form-item>
			</slot>
			<slot name="OrganizationIDAfter"></slot>
			
			<el-form-item>
				<el-button icon="el-icon-search" type="primary" @click="getListParent" :loading="$parent.loading">
					{{comLan["btnSearch"]}}
				</el-button>
				<slot name="replace">
					<slot name="btnAdd">
						<el-button icon="el-icon-plus" type="primary" @click="btnAddParent" v-if="buttonParent.新建">
							{{comLan["btnAdd"]}}
						</el-button>
					</slot>
					<slot name="btnExport">
						<el-button icon="el-icon-download" type="primary" @click="btnExportParent"
							v-if="buttonParent.导出">
							{{comLan["btnExport"]}}
						</el-button>
					</slot>
					<slot></slot>
				</slot>
			</el-form-item>
		</el-form>
	</vab-query-form>
</template>

<script>
	import common from "@/common/common.js";
	import js from "@/Partial/ReferrerOrganizationRelation/js.js";
	export default {
		name: "ReferrerOrganizationRelationListSearch",
		mixins: [common.baseVM, js]
	}
</script>
